﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectInventoryQtyWindow.aspx.cs"
    Inherits="PSS.WebSite.CommForm.SelectInventoryQtyWindow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>即时库存</title>
    <script src="../lib/boot.js" type="text/javascript"></script>
</head>
<body>
    <div class="mini-fit">
        <div id="grid1" class="mini-datagrid" borderstyle="border:0;" style="width: 100%;
            height: 100%;" showfooter="false">
            <div property="columns">
                <div type="indexcolumn" width="25">
                </div>
                <div field="StorageName" width="120" headeralign="center" allowsort="true">
                    仓库名称
                </div>
                <div field="InventoryQty" width="100" headeralign="center" allowsort="true">
                    数量
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        mini.parse();
        var grid = mini.get("grid1");
        function SetData(data) {
            if (data.action == "view") {
                data = mini.clone(data);
                GoodsId = data.GoodsId;
                grid.setUrl("../service/CommonManageHandler.ashx?action=GetInventoryQtyById");
                grid.load({ GoodsId: GoodsId });
            }
        }

        function CloseWindow(action) {
            if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
            else window.close();
        }
        function close() {
            CloseWindow("close");
        }
    </script>
</body>
</html>
